package com.windrift.android.math.model;

public class Formula {
	int firstNumber;
	int secondNumber;
	Operator operator;

	public Formula(Operator operator, int firstNumber, int secondNumber) {
		this.firstNumber = firstNumber;
		this.secondNumber = secondNumber;
		this.operator = operator;
	}

	public int getResult() {
		return operator.getResult(firstNumber, secondNumber);
	}

	public int getFirstNumber() {
		return firstNumber;
	}

	public int getSecondNumber() {
		return secondNumber;
	}

	public Operator getOperator() {
		return operator;
	}
	
	
}
